/**
 * 
 */
package br.srv.full.geoProcessing.entities.map;

import br.srv.full.geoProcessing.entities.GPSPoint;

/**
 * @author Carlos Delfino
 * 
 */
public class MapInformation {

	private GPSPoint gPSPoint;
	private Float zoon;
	private MapType mapType;

	/**
	 * @param p_gPSPoint
	 * @param p_zoom
	 * @param p_type
	 */
	public MapInformation(GPSPoint p_gPSPoint, Float p_zoom, MapType p_type) {
		gPSPoint = p_gPSPoint;
		zoon = p_zoom;
		mapType = p_type;
	}

	/**
	 * @return the gps
	 */
	public GPSPoint getGps() {
		if (gPSPoint == null) {
			gPSPoint = new GPSPoint();
		}

		return gPSPoint;
	}

	/**
	 * @param p_gPSPoint
	 *            the gps to set
	 */
	public void setGps(GPSPoint p_gPSPoint) {
		gPSPoint = p_gPSPoint;
	}

	/**
	 * @return the zoon
	 */
	public Float getZoon() {
		return zoon;
	}

	/**
	 * @param p_zoon
	 *            the zoon to set
	 */
	public void setZoon(Float p_zoon) {
		zoon = p_zoon;
	}

	/**
	 * @return the mapType
	 */
	public MapType getMapType() {
		return mapType;
	}

	/**
	 * @param p_mapType
	 *            the mapType to set
	 */
	public void setMapType(MapType p_mapType) {
		mapType = p_mapType;
	}

	/**
	 * @return
	 * @see br.srv.full.geoProcessing.entities.GPSPoint#getAltitude()
	 */
	public Double getAltitude() {
		return getGps().getAltitude();
	}

	/**
	 * @return
	 * @see br.srv.full.geoProcessing.entities.GPSPoint#getLatitude()
	 */
	public Double getLatitude() {
		return getGps().getLatitude();
	}

	/**
	 * @return
	 * @see br.srv.full.geoProcessing.entities.GPSPoint#getLongitude()
	 */
	public Double getLongitude() {
		return getGps().getLongitude();
	}

	/**
	 * @param p_altitude
	 * @see br.srv.full.geoProcessing.entities.GPSPoint#setAltitude(java.lang.Double)
	 */
	public void setAltitude(Double p_altitude) {
		getGps().setAltitude(p_altitude);
	}

	/**
	 * @param p_latitude
	 * @see br.srv.full.geoProcessing.entities.GPSPoint#setLatitude(java.lang.Double)
	 */
	public void setLatitude(Double p_latitude) {
		getGps().setLatitude(p_latitude);
	}

	/**
	 * @param p_longitude
	 * @see br.srv.full.geoProcessing.entities.GPSPoint#setLongitude(java.lang.Double)
	 */
	public void setLongitude(Double p_longitude) {
		getGps().setLongitude(p_longitude);
	}

}
